//
// Created by xili on 2024/9/25 18:46.
// GO BIG OR GO HOME.
//
#include "leetcode.h"

class Solution {
public:
    vector<int> evenOddBit(int n) {
        vector<int> ans(2);
        for (int i = 0; n; i ^= 1, n >>= 1)
            ans[i] += n & 1;
        return ans;
    }
};
